//
//  AppData.m
//  LazyCat
//
//  Created by zhanshu on 15/9/8.
//  Copyright (c) 2015年 zhanshu. All rights reserved.
//

#import "AppData.h"

@implementation AppData
+ (AppData*)share {
    static AppData *appData = nil;
    static dispatch_once_t once;
    dispatch_once(&once, ^{
        appData = [[self alloc] init];
    });
    return appData;
}
- (id)init {
    if (self = [super init]) {
        [self clearValue];
    }
    return self;
}
// 清除用户信息
- (void)clearValue {
    _doLogin = NO;
    _cardno = @"";//会员卡号
    _email = @"";
    _img = @"";
    _mobile = @"";
    _realname = @"";
    _username = @"";
    _usertype = @"";
    _usertypestr = @"";
    _loginPhone = @"";
    _loginPsw = @"";
}
@end
